@import "../variables";
@import "../flexbox/mixins";

.open-source-card {
	&:hover, :focus {
		text-decoration: none !important;
	}
}
.flat-panel {
	.panel {
		box-shadow: none;
		border: none;
		.panel-heading {
			background-color: transparent;
			.panel-icon {
				display: none;
			}
		}
	}

}

.panel {

	&.no-pad {
		.panel-content{
			padding: 0;
		}
	}
	.no-results {
		text-align: center;
		line-height: 44px;
	}
	width: 100%;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	border-radius: $border-radius-default;
	.panel-heading {
		h1, h2, h3 {
			color: $panel-heading-color;
			margin: 0;
		}

		font-weight: 500;
		font-size: 1em;
		border-top-right-radius: 8px;
		border-top-left-radius: 8px;
		padding-top: 10px;
		padding-bottom: 10px;
		flex: 1 1 0%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-left: $input-padding-x;
		padding-right: $input-padding-x;
		background-color: $panel-heading-bg;
		text-transform: capitalize;
		color: $panel-heading-color;

		.title {
			color: $header-color;
			font-family: $font-family-header;
			.subtitle {
				color: $body-text-faint;
				text-transform: none;
			}
		}

	}

	.panel-content {
		background-color: $panel-bg;
		padding: $input-padding-y $input-padding-x;
		border-radius: $border-radius-default !important;
	}

	input[type="text"] {
		opacity: 0.5;
		&:focus {
			opacity: 1;
		}
		outline: none;
		border: none;
		border-radius: $border-radius-default;
		background: rgba(0, 0, 0, .2);
		//padding: 2px 10px 2px 30px;
		font-weight: normal;
		//color: $panel-heading-color;
	}

	&.panel-alt {
		>.panel-heading {
			background-color: $panel-alt-heading-bg;
			color: $panel-alt-heading-color;

			h1, h2, h3 {
				color: $panel-alt-heading-color;
				margin: 0;
			}
		}
	}

	.panel-icon {
		display: inline-block;
		@include flexbox();
		align-items: center;
		width: 32px;
		height: 32px;
		border-radius: 16px;
		justify-content: center;
		background-color: $panel-icon-background-color;
		border: 1px solid $panel-icon-border-color;
		margin-right: $input-padding-x/2;
		.icon {
			display: inline-block;
			text-align: center;
			font-size: 18px;
			line-height: 18px;
			color: $panel-icon-color;
		}
		&--disabled {
			.icon {
				color: lightgray;
				font-size: 2em;
			}
		}
		&--success {
			border: 1px solid $bt-brand-primary;
			.icon {
				color: $bt-brand-primary;
				font-size: 2em;
			}
		}
	}

	&.no-pad {

		.panel-content {
			padding: 0;

		}
	}
}
